package com.imeem.api.data;

import java.net.MalformedURLException;
import java.net.URL;

public class MusicData extends MediaData
{
   public static final String MUSIC_TYPE = "music";

   @Override
   public String getType()
   {
      return MusicData.MUSIC_TYPE;
   }
   
   private String _artist;
   public String getArtist() { return _artist; }
   public void setArtist(String artist) { _artist = artist; }
   
   private String _album;
   public String getAlbum() { return _album; }
   public void setAlbum(String album) { _album = album; }
   
   private String _genre;
   public String getGenre() { return _genre; }
   public void setGenre(String genre) { _genre = genre; }
   
   private String _description;
   public String getDescription() { return _description; }
   public void setDescription(String description) { _description = description; }
   
   private URL _musicEmbedUrl;
   public URL getMusicEmbedURL() { return _musicEmbedUrl; }
   public void setMusicEmbedURL(String url) throws MalformedURLException
   {
      _musicEmbedUrl = new URL(url);
   }
   
   private URL _iconUrl;
   public URL getIconURL() { return _iconUrl; }
   public void setIconURL(String url) throws MalformedURLException
   {
      _iconUrl = new URL(url);
   }

   private int _duration;
   public int getDuration() { return _duration; }
   public void setDuration(int duration) { _duration = duration; }
   
   private int _rating;
   public int getRating() { return _rating; }
   public void setRating(int rating) { _rating = rating; }
   
   private int _ratingCount;
   public int getRatingCount() { return _ratingCount; }
   public void setRatingCount(int count) { _ratingCount = count; }
   
   private boolean _isSample;
   public boolean IsSample() { return _isSample; }
   public void setIsSample(boolean isSample) { _isSample = isSample; }
}
